@model System.Collections.Generic.IEnumerable<Omu.AwesomeDemo.Core.Model.Foobar>
@using Omu.AwesomeDemo.WebUI.Controllers
@foreach (var o in Model)
   {
<tr id='o@(o.Id)'>
    <td>
        @o.Name
    </td>
    <td>
        @(o.Person != null ? o.Person.FirstName + " " + o.Person.LastName : "")
    </td>
    <td>
        @(o.Show != null ? o.Show.Name : "")
    </td>
    <td>
        @(o.Character != null ? o.Character.FirstName + ' ' +o.Character.LastName : "")
    </td>
    <td>
        @(o.Hobby != null ? o.Hobby.Name : "")
    </td>
    <td>
        @(Html.PopupFormActionLink<FoobarController>(a => a.Edit(o.Id), htmlAttributes: new { @class = "abtn" }))
    </td>
    <td>
        <form method="post" action="@Url.Action("Delete",new{o.Id})" class="fconfirm" >
        <input type="submit" value="Delete" class="confirm" />
        </form>
    </td>
</tr>
}
